Markdown for Jupyter Cheat Sheet

Headings

# H1
## H2
### H3
#### H4
##### H5
###### H6

Alternatively, for H1 and H2, an underline-ish style:

Alt-H1
======

Alt-H2
------

H1

H2

H3

H4

H5
H6

Alternatively, for H1 and H2, an underline-ish style:

Alt-H1

Alt-H2

Italic / Bold / Underscore / Strikethrough

* Italics: *asterisks* or _underscores_.
* Bold: **double asterisks** or __double underscores__.
* Combined: **asterisks and _underscores_**.
* Strikethrough: ~~double tilde~~

  • Italics: asterisks or underscores.
  • Bold: double asterisks or double underscores.
  • Combined: asterisks and underscores.
  • Strikethrough: double tilde

Lists

1. First ordered list item
2. Another item
  * Unordered sub-list. 
1. Actual numbers don't matter, just that it's a number
  1. Ordered sub-list
4. And another item.

   You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

.. To have a line break without a paragraph, you will need to use two trailing spaces...
.. Note that this line is separate, but within the same paragraph...
.. (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

* Unordered list can use asterisks
- Or minuses
+ Or pluses

  1. First ordered list item
  2. Another item
    • Unordered sub-list.
  3. Actual numbers don't matter, just that it's a number
    1. Ordered sub-list
  4. And another item.

    You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

    To have a line break without a paragraph, you will need to use two trailing spaces.
    Note that this line is separate, but within the same paragraph.
    (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

  • Unordered list can use asterisks
  • Or minuses
  • Or pluses
* [Inline link](https://www.duckduckgo.com)
* [Inline link with title](https://www.duckduckgo.com "Duckduck Go Homepage")
* [Reference link][Case-insensitive reference text]
* [Relative reference to a repo file](../blob/master/LICENSE)
* [Use numbers for reference link definitions][1]
* [link text itself for reference link definition]

URLs and URLs in angle brackets will automatically get turned into links. 
http://www.example.com or <http://www.example.com>

Some text to show that the reference links can follow later.

[Case-insensitive reference text]: https://www.mozilla.org
[1]: http://slashdot.org
[link text itself]: http://www.reddit.com

URLs and URLs in angle brackets will automatically get turned into links. http://www.example.com or http://www.example.com

Some text to show that the reference links can follow later.

Files

Just link to local files
[Latex Symbols](../sample_files/Latex_Symbols.pdf)

Just link to local files Latex Symbols

Images

Here is our logo (hover to see the title text):

Inline-style:  
![zawiki logo](http://relia.zapto.org/zawiki/lib/exe/fetch.php/zawiki.png "Zawiki Logo")
![xkcd_estimation](../sample_files/xkcd_estimation.png)

Reference-style:  
![alt text][logo]

[logo]: http://relia.zapto.org/zawiki/lib/exe/fetch.php/zawiki.png "Logo Title Text 2"

Jupyter-style for local files:  
<img src="../sample_files/xkcd_estimation.png" />
<img src="../sample_files/xkcd_estimation.png" width="200" />

Here is our logo (hover to see the title text):

Inline-style:

Reference-style:

Jupyter-style for local files:

Videos

HTML-style:  
<a href="http://www.youtube.com/watch?feature=player_embedded&v=i40d8-Hu4vM" target="_blank"><img src="http://img.youtube.com/vi/i40d8-Hu4vM/0.jpg" 
alt="Jupyter Video" width="240" height="180" border="10" /></a>

Markdown-style:  
[![Jupyter Video](http://img.youtube.com/vi/i40d8-Hu4vM/0.jpg)](http://www.youtube.com/watch?v=i40d8-Hu4vM)

Jupyter-style for local files:  
<video controls src="../sample_files/animation.m4v" />

HTML-style:

Markdown-style:

Jupyter-style for local files:

Code

Inline `code` has `back-ticks around` it.

Inline code has back-ticks around it.

var s = "JavaScript syntax highlighting";
alert(s);

s = "Python syntax highlighting"
print s

library ieee;
use ieee.std_logic_1164.all;

entity AND_bloc is
    port(x: in std_logic;
         y: in std_logic;
         F: out std_logic
    );
end AND_bloc;  

architecture rtl of AND_bloc is
begin
    F <= x and y;
end rtl;

No language indicated, so no syntax highlighting. 
But let's throw in a <b>tag</b>.

Tables

Colons can be used to align columns.

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned |  1600 |
| col 2 is      | centered      |    12 |

There must be at least 3 dashes separating each header cell.
The outer pipes (|) are optional, and you don't need to make the 
raw Markdown line up prettily. You can also use inline Markdown.

Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3

| Nice | Table |
| ---- | ----- |
| 1    | 2     |
| 3    | 4     |

Colons can be used to align columns.

Tables Are Cool
col 3 is right-aligned 1600
col 2 is centered 12

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.

Markdown Less Pretty
Still renders nicely
1 2 3
Nice Table
1 2
3 4

Math Equations (Latex)

Inline math $e^{i\pi} + 1 = 0$ like this.

Bloc style math:  
$$e^x=\sum_{i=0}^\infty \frac{1}{i!}x^i$$

Inline math $e^{i\pi} + 1 = 0$ like this.

Bloc style math:
$$e^x=\sum_{i=0}^\infty \frac{1}{i!}x^i$$

Some Special Characters to remember:

Greek Symbol Latex Code
$\alpha A$ \alpha A
$\beta B$ \beta B
$\gamma \Gamma$ \gamma \Gamma
$\delta \Delta$ \delta \Delta
$\eta H$ \eta H
$\mu M$ \mu M
$\nu N$ \nu N
$\pi \Pi$ \pi \Pi
$\sigma \Sigma$ \sigma \Sigma
$\omega \Omega$ \omega \Omega
Arrow Symbol Latex Code
$\leftarrow$ \leftarrow
$\rightarrow$ \rightarrow
$\leftrightarrow$ \leftrightarrow
$\uparrow$ \uparrow
$\nearrow$ \nearrow
$\swarrow$ \swarrow
$\searrow$ \searrow
$\nwarrow$ \nwarrow
Math Symbol 1 Latex Code
$\infty$ \infty
$\exists$ \exists
$\nexists$ \nexists
$\varnothing$ \varnothing
$\emptyset$ \emptyset
$\partial$ \partial
Math Symbol 2 Latex Code
$\square$ \square
$\surd$ \surd
$\blacksquare$ \blacksquare
$\triangle$ \triangle
Math Symbol 3 Latex Code
$\equiv$ \equiv
$\approx$ \approx
$\cong$ \cong
$\simeq$ \simeq
$\neq$ \neq
Math Symbol 3 Latex Code
$<$ <
$>$ >
$\nless$ \nless
$\ngtr$ \ngtr
$\leq$ \leq
$\geq$ \geq
$\leqslant$ \leqslant
$\geqslant$ \geqslant
$\nleq$ \nleq
$\ngeq$ \ngeq
$\equiv$ \equiv
Trigonometry Symbol 3 Latex Code
$\sin$ \sin
$\arcsin$ \arcsin
$\sinh$ \sinh
$\cos$ \cos
$\arccos$ \arccos
$\cosh$ \cosh
$\tan$ \tan
$\arctan$ \arctan
$\tanh$ \tanh

See also Latex Symbols

Blockquotes

> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.

Quote break.

> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.

Blockquotes are very handy in email to emulate reply text. This line is part of the same quote.

Quote break.

This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote.

Horizontal Rules

Hyphens

---

Asterisks

***

Underscores

___

Hyphens


Asterisks


Underscores


Line Breaks

````markdown Here's a line for us to start with.

This line is separated from the one above by two newlines, so it will be a separate paragraph.

This line is also a separate paragraph, but.. (two spaces) This line is only separated by a single newline, so it's a separate line in the same paragraph.

```

Here's a line for us to start with.

This line is separated from the one above by two newlines, so it will be a separate paragraph.

This line is also a separate paragraph, but
This line is only separated by a single newline, so it's a separate line in the same paragraph.